guests=['A','B','C']
print(guests[0]+":"+"Please come to my party.")
print(guests[1]+":"+"Please come to my party.")
print(guests[2]+":"+"Please come to my party.")
guests[0]='A'
print(guests[0]+"无法参加")
guests[0]='D'
print(guests)
print(guests[0]+":"+"Please come to my party.")
print(guests[1]+":"+"Please come to my party.")
print(guests[2]+":"+"Please come to my party.")
New_guests=("E,F,G")
print(New_guests)
guests.append('E')
print(guests)
guests.insert(0,'F')
print(guests)
guests.insert(2,'G')
print(guests)
print(guests[0]+":"+"Please come to my party.")
print(guests[1]+":"+"Please come to my party.")
print(guests[2]+":"+"Please come to my party.")
print(guests[3]+":"+"Please come to my party.")
print(guests[4]+":"+"Please come to my party.")
print(guests[5]+":"+"Please come to my party.")
print("I can only invite two people for dinner")
poped_guests=guests.pop()
print(guests)
print(guests[-1]+":"+"I'm sorry I can't invite you to dinner")
poped_guests=guests.pop()
print(guests)
print(guests[-2]+":"+"I'm sorry I can't invite you to dinner")
poped_guests=guests.pop()
print(guests)
print(guests[-3]+":"+"I'm sorry I can't invite you to dinner")
poped_guests=guests.pop()
print(guests)
print(guests[2]+":"+"I'm sorry I can't invite you to dinner")
print("I'll still invite you to dinner"+"F")
print("I'll still invite you to dinner"+"D")
del guests[0]
del guests[0]
print(guests)
#

